package com.leyou.user.inter.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @数表名称 tb_role
 * @开发日期 2020-03-24
 */
@Data
@Table(name="tb_role")
public class Role implements Serializable {
    
    /** 主键id (主健ID) */
    @Id
    @Column(name="id")
    private Long id;

    /** 创建时间 */
    @Column(name="create_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;

    /** 修改时间 */
    @Column(name="update_date")
    private Date updateDate;

    /** 是否删除：0/否 1/删除  (默认值为: 0) */
    @Column(name="is_delete")
    private Boolean isDelete;

    /** 角色码 */
    @Column(name="role_code")
    private String roleCode;

    /** 角色描述 */
    @Column(name="remark")
    private String remark;

    @Transient
    private List<Permission> list;

    private static final long serialVersionUID = 1L;
}